//
//  InformationTableTwoCell.m
//  meiyinxiang
//
//  Created by lizidi on 2018/1/16.
//  Copyright © 2018年 hbjApple. All rights reserved.
//

#import "InformationTableTwoCell.h"
@interface InformationTableTwoCell()

@property(nonatomic,strong)UILabel * labelone,*detialLabel,*timeLabel;


@end

@implementation InformationTableTwoCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        if (!_labelone) {
            _labelone = [[UILabel alloc] init];
            _labelone.text = @"发布";
            _labelone.font = [MyAdapter lfontADapter:15];
            [self addSubview:_labelone];
            [_labelone mas_makeConstraints:^(MASConstraintMaker *make) {
                make.left.offset([MyAdapter laDapter:20]);
                make.centerY.equalTo(self.contentView.mas_centerY);
                make.height.offset([MyAdapter laDapter:20]);
                make.width.offset([MyAdapter laDapter:40]);
            }];
        }

        if (!_detialLabel) {
            _detialLabel =[[UILabel alloc]init];
            _detialLabel.textColor = RGBACOLOR(29, 29, 29, 1);
            _detialLabel.text = @"实打实的撒大大声撒旦撒旦撒";
            _detialLabel.font = [MyAdapter lfontADapter:15];
            _detialLabel.numberOfLines = 1;
            _detialLabel.textAlignment = 0;
            [self addSubview:_detialLabel];
            [_detialLabel mas_makeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(_labelone.mas_right).offset([MyAdapter laDapter:26]);
                make.top.offset([MyAdapter laDapter:10]);
                make.right.offset([MyAdapter laDapter:-15]);
                make.height.offset([MyAdapter laDapter:30]);
            }];
        }
        if (!_timeLabel) {
            _timeLabel =[[UILabel alloc]init];
            _timeLabel.textColor = RGBACOLOR(29, 29, 29, 1);
            _timeLabel.font = [MyAdapter lfontADapter:12];
            _timeLabel.text = @"2018-1-3";
            _timeLabel.numberOfLines = 1;
            _timeLabel.textAlignment = 0;
            [self addSubview:_timeLabel];
            [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(_labelone.mas_right).offset([MyAdapter laDapter:26]);
                make.bottom.offset([MyAdapter laDapter:-10]);
                make.height.offset([MyAdapter laDapter:15]);
            }];
        }
        
        
    }
    
    
    return self;
}
-(void)setMYXotherinfoListModel:(MYXotherinfoListModel *)MYXotherinfoListModel{
    
    self.detialLabel.text = MYXotherinfoListModel.content;
    self.timeLabel.text = MYXotherinfoListModel.create_time;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
